<script type="text/javascript">
function selectAll(){  
    if ($("#SelectAll").attr("checked")) {  
        $(":checkbox").attr("checked", true);  
    } else {  
        $(":checkbox").attr("checked", false);  
    }  
}

function checkSearch()
{
// 	if(document.frm.search.value == "")
// 			 {
// 					alert("请输入搜索的订单号！");
// 					document.frm.search.focus();
// 					return false;
// 		      }
	var  doc = document.frm.search.value.length;
	 if(doc > 1 && doc < 16  ||doc > 16 )
	{
		alert("订单号错误！请重新输入");
		document.frm.search.focus();
		return false;
	}
}
</script>
  <!--<?php echo "<pre>";print_r($search);echo "</pre>";?>-->
	<table border="0" align="center" width="950px" cellpadding="0" cellspacing="0" class="order_manage">
		<tr>
			<td  class="account-td account-serve" colspan="5">
				 <form name ="frm" action="" method="post" onsubmit="return checkSearch()">
					订单号： <input type="text"  name="search" class="search" id="searchname"  style="padding-left:5px;">
							<input type="submit" value="搜索" class="sub" name="submit">
							<input type="hidden"  name='act'  value='seek'>
				
				</form>
			</td>
		</tr>
		<tr>
			<td class="account-td account-serve" style="width:130px"><span style="margin-left:-70px;"><input type="checkbox" id="SelectAll" onclick="selectAll();" style="margin-right:5px;"/>订单号：</span></td>
			<td class="account-td account-serve">收件人：</td>  
			<td class="account-td account-serve">运输方式：</td>
			<td class="account-td account-serve">目的地：</td>
			<td class="account-td account-serve">操作：</td>
		</tr>
		 
		 <?php if(empty($search)):?>
		 <?php echo $OrderManage ?>
		 <?php else:?>
		 <tr>
 				<td   class="stamp_td"><input type="checkbox"  id= "sub"  name="keyword[]"  value=<?php echo $search[0]->order_number ?> style="margin-right:5px;"/><?php echo $search[0]->order_number ?></td>
				<td  class="stamp_td"><div><?php echo $search[0]->order_recipients ?></div></td>
				<td  class="stamp_td"><?php echo "ziti" ?></td>
				<td  class="stamp_td"><?php echo "China" ?></td>
				<td  class="stamp_td"><a href="/view?act=view&id=<?php echo $search[0]->order_number?>" target="_blank">查看</a>&nbsp;</td>
		 </tr>
		 </table>
		 <?php endif;?>
		 




















